package com.gang.mars.basic.annotation;

import java.lang.annotation.Annotation;
import java.util.Arrays;

/**
 * @author gang.chen
 * @description 获取自定义注销
 * @Date 2021/9/16 13:10
 */
public class Apple01AnnotationTest {

    public static void main(String[] args) {
        /**
         * 注解获取数组
         * */
        Annotation[] declaredAnnotations = Apple01EnableIImport.class.getDeclaredAnnotations();
        for (Annotation annotation : declaredAnnotations) {
            Class<? extends Annotation> aClass = annotation.annotationType();
            System.out.println(annotation);
        }
    }
}
